import java.io.*;

public class GetMailSettings {

	public GetMailSettings() {


		try{

			File file = new File("c:\\Program Files\\MailOnTray\\settings.txt");
			BufferedReader in = new BufferedReader(new FileReader(file));
			String s;
			Gmail.Username = in.readLine();
			Gmail.Password = in.readLine();
			in.close();
			
		}catch (Exception e) {
			
			System.out.println("okuyamadim!");

			
			
			File file = new File("c:\\Program Files\\MailOnTray\\settings.txt");
			try {
				file.createNewFile();
			} catch (IOException e1) {
				// TODO Auto-generated catch block
				e1.printStackTrace();
			}
			
		}
	}
	
}
